package com.yuezhu.util;
/**
 * Created by zhaoshuzhen on 8/12/15.
 */

/**
 * 避免控件连续点击的时间限定
 */
public class CommonUtils {
     private static long lastClickTime; 
     public static boolean isFastDoubleClick() { 
         long time = System.currentTimeMillis();
         long timeD = time - lastClickTime; 
         if ( 0 < timeD && timeD < 800) {    
             return true;    
         }    
         lastClickTime = time;    
         return false;    
     } 
 } 